package com.fast.alden.data.repo;

import com.fast.alden.data.model.SysUserRole;

import java.util.List;

public interface SysUserRoleRepository extends BaseEntityRepository<SysUserRole> {
    List<SysUserRole> findAllByUserIdIsAndRoleIdIn(Long userId, List<Long> roleIds);

    void deleteByUserIdIn(List<Long> userIds);

    void deleteByRoleIdIn(List<Long> roleIds);

    List<SysUserRole> findAllByUserIdIs(Long userId);

    List<SysUserRole> findAllByRoleId(Long roleId);
}
